#ifndef CCONTACT_H
#define CCONTACT_H

#include "cPhysicsObject.h"

class cContact
{
	public:
		//Initialize the information of the class 
		cContact();
	
		//Compute the impulse
		void computeImpulse();

		//Apply the impulse
		void applyImpulse();

		//Compute a response for the contact of the collision
		void computeResponse();

		//Apply the response
		void applyResponse();

	private:
		//Controls the point of contact
		Vector3D point;
		
		//Controls the surface of the contact
		Vector3D normal;

		//Checks to see if two objects have collided
		bool bHasCollided;

		//Points to the physics objects that are to be tested
		cPhysicsObject *physicsObhject[2];

		//The Coefficient of Resitution which controls the elasticity of the
		//collision between objects
		float COR;

		//The result of the distance which two objects penerate 
		//each other
		float penetration;
};

#endif